package com.hemaapp.yjnh.bean;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

import xtom.frame.XtomObject;
import xtom.frame.exception.DataParseException;

/**
 * 提现记录
 */
public class Cash extends XtomObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;// 主键id
	private String client_id;// 用户id
    private String keytype;// 提现类型    1：银行卡 2：支付宝
	private String applyfee;// 申请提现金额 单位：元
	private String statustype;// 申请处理状态  0:等待处理 1：已经处理
	private String bankuser;// 户主姓名
	private String bankname;// 开户行名称
	private String bankcard;// 银行卡号
	private String bankaddress;// 开户行地址
    private String alipay;// 支付宝账号    
	private String regdate;// 申请日期

	public Cash(JSONObject jsonObject) throws DataParseException {
		if (jsonObject != null) {
			try {
				id = get(jsonObject, "id");
				client_id = get(jsonObject, "client_id");
				keytype = get(jsonObject, "keytype");
				applyfee = get(jsonObject, "applyfee");
				statustype = get(jsonObject, "statustype");
				bankuser = get(jsonObject, "bankuser");
				bankname = get(jsonObject, "bankname");
				bankcard = get(jsonObject, "bankcard");
				bankaddress = get(jsonObject, "bankaddress");
				alipay = get(jsonObject, "alipay");
				regdate = get(jsonObject, "regdate");

				log_i(toString());
			} catch (JSONException e) {
				throw new DataParseException(e);
			}
		}
	}

	@Override
	public String toString() {
		return "Cash [id=" + id + ", client_id=" + client_id + ", applyfee="
				+ applyfee + ", keytype=" + keytype + ", statustype=" + statustype + ", bankuser="
				+ bankuser + ", bankname=" + bankname + ", bankcard="
				+ bankcard + ", bankaddress=" + bankaddress + ", alipay=" + alipay + ", regdate="
				+ regdate + "]";
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @return the client_id
	 */
	public String getClient_id() {
		return client_id;
	}

    /**
     * @return the keytype
     */
    public String getKeytype() {
        return keytype;
    }

	/**
	 * @return the applyfee
	 */
	public String getApplyfee() {
		return applyfee;
	}

	/**
	 * @return the statustype
	 */
	public String getStatustype() {
		return statustype;
	}

	/**
	 * @return the bankuser
	 */
	public String getBankuser() {
		return bankuser;
	}

	/**
	 * @return the bankname
	 */
	public String getBankname() {
		return bankname;
	}

	/**
	 * @return the bankcard
	 */
	public String getBankcard() {
		return bankcard;
	}

	/**
	 * @return the bankaddress
	 */
	public String getBankaddress() {
		return bankaddress;
	}

    /**
     * @return the bankaddress
     */
    public String getAlipay() {
        return alipay;
    }
    
	/**
	 * @return the regdate
	 */
	public String getRegdate() {
		return regdate;
	}

}
